<?php


namespace App\Http\Requests\Customer\Common\Download;


use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class HsCodeRequest extends FormRequest
{
    /**
     * @return array
     * @author: luffyzhao@vip.126.com
     * @datetime: 2019/3/28 16:00
     */
    public function rules(): array
    {
        return [
            'code' => ['required', 'size:10', Rule::exists('hs_codes', 'code')],
        ];
    }
}

